#ifndef __ANIMATION__HH
#define __ANIMATION__HH
#define _POSIX_C_SOURCE 199309
#include <stdio.h>
#include <time.h>
#include "sprite.h"

typedef struct _animations_t{
    texture_location_t *locs;
    short loc_num;
    sprite_t *spr;
} animation_t;

animation_t* create_animation(sprite_t *spr);
void free_animation_chain(animation_t *ac);
void append_animation(animation_t *an, const texture_location_t loc);
void write_animation_text(FILE *out, animation_t *an);
void write_animation_bin(FILE *out, animation_t *an);
/*
typedef struct _texture_info_t{
    GLfloat texx, texy, texx2, texy2;
    GLuint texture;
    short texw, texh;
} texture_info_t;*/

#endif
